<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model="msg">
        <!-- 输入框输入什么，这个p就显示什么 -->
        <p>{{ msg }}</p>

        <select v-model="sel">
            <option >欧巴</option>
            <option >小姐姐</option>
        </select>

        <!-- 下面这句话无效 -->
        <!-- v-model只能用在表单元素上 -->
        <!-- <div v-model="msg"></div> -->
    </div>

    <script src="./vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    msg: 'hello',
                    sel: '小姐姐'
                }
            },
        })
    </script>
</body>
</html>